<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
				{volist name="modulelist" id="moduleRs"}
	                {php}$isdisplay_array=explode(',',$moduleRs['isdisplay']);{/php}
					<li class="nav-item has-treeview {if $moduleRs.tabledir eq $tabledir or ($tabledir eq 'shop_spec' and $moduletable eq $moduleRs.tabledir) or ($key eq 0 and $controller eq 'index')}menu-open{/if}">
                        <a href="#" class="nav-link {if $moduleRs.tabledir eq $tabledir or ($tabledir eq 'shop_spec' and $moduletable eq $moduleRs.tabledir) or ($key eq 0 and $controller eq 'index')}active{/if}">
                            <i class="far fa-dot-circle nav-icon text-{$key}"></i><p>{$moduleRs.title} {:lang('v_manage')}<i class="right fas fa-angle-left mt-2"></i></p>
                        </a>
                        <ul class="nav nav-treeview">
                        	<!--是否显示添加信息-->
	                        {in name="'addinfo'" value="$isdisplay_array"}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/'.$moduleRs['tabledir'].'/edit',['lang'=>$lang,'tabledir'=>$moduleRs['tabledir']])}" class="nav-link {if $moduleRs.tabledir eq $tabledir and $controller eq $moduleRs.tabledir and $action eq 'edit'}active{/if}">
	                                    <i class="fas fa-edit nav-icon fa-fw"></i>
	                                    <p>
	                                    	{:lang('v_add')} {$moduleRs.title}
	                                    	{if $moduleRs.tabledir eq $tabledir and $controller eq $moduleRs.tabledir and $action eq 'edit'}<i class="right fas fa-angle-left"></i>{/if}
	                                    </p>
	                                </a>
	                            </li>
                            {/in}
                            <!--信息管理-->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/'.$moduleRs['tabledir'].'/index',['lang'=>$lang,'tabledir'=>$moduleRs['tabledir'],'signid'=>1])}" class="nav-link {if $moduleRs.tabledir eq $tabledir and $controller eq $moduleRs.tabledir and $action eq 'index'}active{/if}">
                                    <i class="fas fa-list-ul nav-icon fa-fw"></i>
                                    <p>
                                    	{$moduleRs.title} {:lang('v_manage')}
                                    	{if $moduleRs.tabledir eq $tabledir and $controller eq $moduleRs.tabledir and $action eq 'index'}<i class="right fas fa-angle-left"></i>{/if}
                                    </p>
                                </a>
                            </li>
                            <!--是否显示分类-->
	                        {in name="'sort'" value="$isdisplay_array"}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/sort/index',['lang'=>$lang,'tabledir'=>$moduleRs['tabledir']])}" class="nav-link {if $moduleRs.tabledir eq $tabledir and $controller eq 'sort'}active{/if}">
	                                    <i class="fas fa-sitemap nav-icon fa-fw"></i>
	                                    <p>
	                                    	{$moduleRs.title} {:lang('v_sort')}
	                                    	{if $moduleRs.tabledir eq $tabledir and $controller eq 'sort'}<i class="right fas fa-angle-left"></i>{/if}
	                                    </p>
	                                </a>
	                            </li>
                            {/in}
                            <!--是否显示品牌-->
	                        {in name="'brand'" value="$isdisplay_array"}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/brand/index',['lang'=>$lang,'tabledir'=>$moduleRs['tabledir']])}" class="nav-link {if $moduleRs.tabledir eq $tabledir and $controller eq 'brand'}active{/if}">
	                                    <i class="fas fa-lightbulb nav-icon fa-fw"></i>
	                                    <p>
	                                    	{$moduleRs.title} 品牌
	                                    	{if $moduleRs.tabledir eq $tabledir and $controller eq 'brand'}<i class="right fas fa-angle-left"></i>{/if}
	                                    </p>
	                                </a>
	                            </li>
                            {/in}
                            <!--是否显示属性-->
	                        {in name="'attribute'" value="$isdisplay_array"}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/attribute/index',['lang'=>$lang,'tabledir'=>$moduleRs['tabledir']])}" class="nav-link {if $moduleRs.tabledir eq $tabledir and $controller eq 'attribute' and $moduletable neq 'shop_spec'}active{/if}">
	                                    <i class="fas fa-tag nav-icon fa-fw"></i>
	                                    <p>
	                                    	{$moduleRs.title} {:lang('v_attribute')}
	                                    	{if $moduleRs.tabledir eq $tabledir and $controller eq 'attribute' and $moduletable neq 'shop_spec'}<i class="right fas fa-angle-left"></i>{/if}
	                                    </p>
	                                </a>
	                            </li>
                            {/in}
                            <!--规格-->
	                        {if in_array('shop_spec',$isdisplay_array) and !in_array($moduleRs.module,array('about','news'))}
	                            <li class="nav-item has-treeview">
	                                <a href="{:url('/shop_spec/index',['lang'=>$lang,'tabledir'=>$moduleRs['tabledir']])}" class="nav-link {if $moduleRs.tabledir eq $tabledir and ($controller eq 'shop_spec' or $moduletable eq 'shop_spec')}active{/if}">
	                                    <i class="fas fa-puzzle-piece nav-icon fa-fw"></i>
	                                    <p>
	                                    	{$moduleRs.title} {:lang('v_spec')}
	                                    	{if $moduleRs.tabledir eq $tabledir and ($controller eq 'shop_spec' or $moduletable eq 'shop_spec')}<i class="right fas fa-angle-left"></i>{/if}
	                                    </p>
	                                </a>
	                            </li>
                            {/if}
                        </ul>
                    </li>
                {/volist}